let axios = require('axios');
let FormData = require('form-data');

export function requestCompute(e) {
  let data = new FormData()
  data.append('weight_time', e.weight_time);
  data.append('weight_cost', e.weight_cost);
  data.append('weight_utility', e.weight_utility);
  data.append('num_task', e.num_task);
  data.append('capability_array', e.capability_array);
  data.append('robot_time', e.robot_time);
  data.append('robot_utility', e.robot_utility);
  data.append('robot_cost', e.robot_cost);
  data.append('human_time', e.human_time);
  data.append('human_utility', e.human_utility);
  data.append('human_cost', e.human_cost);
  let config2 = {
    method: 'post',
    // url: 'http://localhost:8000/api1/',
    url: 'http://43.140.193.162:8000/api1/',
    headers: {
      'Accept': '*/*',
    },
    data:data
  }
  return axios(config2)
}

